package com.bonjour.work.dto.interfaces;

public interface IResumeDetailNoSensitive extends IResumeDetail{
    public String getSecret();
    public String encrypt(String date, String secret);

    default String getEmail() {
        return encrypt(getEmail(), getSecret());
    }

    default String getPhoneNumber(){
        return encrypt(getPhoneNumber(), getSecret());
    }
}
